//
//  CBDAddressBookManager.h
//  addressBookTest
//
//  Created by sheepyellow on 15/8/22.
//  Copyright (c) 2015年 sheepyellow. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h>

#define kADDRESSBOOKUPDATE_SUCCESS   @"kADDRESSBOOLUPDATE_SUCCESS"
#define kADDRESSBOOKUPDATE_ERROR    @"kADDRESSBOOKUPDATE_ERROR"

@interface MUCAddressBookNotification : NSObject

@property(strong, nonatomic)id target;
@property(assign, nonatomic)SEL selector;
@property(strong, nonatomic)NSString* identifer;

@end

@interface MUCAddressBookManager : NSObject
@property(strong, nonatomic)NSArray* records;
+(instancetype)shareInstance;
+(ABAuthorizationStatus) authStatus;
-(BOOL)accessAddressBook;
-(void)addUpdateSuccessObserver:(id)observer selector:(SEL)aSelector;
-(void)addupdateFaildObserver:(id)observer selector:(SEL)aSelector;
-(void)removeUpdateSuccessObserver:(id)observer selector:(SEL)aSelector;
-(void)removeUpdateFaildObseerver:(id)observer selector:(SEL)aSelector;
-(void)removeAllObserver:(id)observer selector:(SEL)aSelector;
@end
